import { Component, ScreenQuad } from 'kokomi.js';
import Experience from '../Experience';

import raymarchingSceneFragmentShader from "../shaders/raymarchingScene/frag.glsl";

export default class RaymarchingScene extends Component{

    declare base: Experience;

    public quad!: ScreenQuad;

    constructor(base: Experience){
        super(base);

        this.quad = new ScreenQuad(this.base, {
            fragmentShader: raymarchingSceneFragmentShader,
            shadertoyMode: true,
        });

    }

    addExisting() {
        this.quad.addExisting();
    }
}